@extends('default.layouts.indexPublic')
@section('title',$station_name.'找工作|'.$station_name.'最新招聘信息【'.$station_name.Site::get('webname').'】')

{{--首页css--}}
@section('headcss')
    <meta name="keywords" content="{{$station->station_keyword}}">
    <meta name="description" content="{{$station->station_description}}">
    @parent
    <link rel="stylesheet" href="{{asset('/default/css/index/index.css')}}">
    <link rel="stylesheet" href="{{asset('/default/css/index/station.css')}}">

@endsection
{{--主体内容--}}
@section('content')
    {{--分站列表--}}
    @include('default.layouts.station')
    <div class="main">
        <div class="maincon">
            <div class="main_search">
                <div class="logo"><a href="{{Site::get('webaddress')}}"><img
                                src="{{asset('default/images/logo/index.png')}}"> </a></div>
                <div class="region">
                    <span class="rtitle">{{$station_name}}人才网</span>
                    <span class="changeregion" id="changeregion">
                        <a><span style="color:#F60">{{$station_name}}站</span><i></i></a>
                    </span>
                </div>
                <div class="search">
                    <form action="{{mainUrl('/job')}}" method="post" name="jobSearch" id="jobSearch">
                        {!! csrf_field() !!}<input type="hidden" value="" id="keyword_type" name="keyword_type">
                        <div id="keyword_type_select" class="search_select">
                            <span class="switch"><a>全文</a></span><i></i>
                        </div>
                        <div class="inputtext"><input type="text" name="keyword" id="keyword" placeholder="请输入职位名称">
                        </div>
                        <input type="hidden" value="{{$station_cid}}" id="jobarea1" name="jobarea1">
                        <div id="jobarea1_select" class="search_region">
                            <span class="cregion" style="width: 86px;"><a>地区不限</a></span><i></i>
                        </div>
                        <div class="search_btn"><input type="submit" class="sub" value="搜索职位"></div>
                    </form>
                </div>

                <div class="search2">
                    <div class="or">或者</div>
                    <div class="moresearch">
                        <div class="more" id="selectNavMoreSearch"><a><span>更多搜索功能</span><i></i></a></div>
                    </div>
                </div>
                <div class="register">
                    <a href="{{mainUrl('personal/resume_mange')}}" class="regbtn">创建简历</a>
                </div>

            </div>
        </div>
    </div>
    {{--导航--}}
    <div class="nav">
        <div class="navson">
            <div class="navsonfloat">
                <div class="category" id="category">
                    <div class="categorytext"><a href="{{url('/')}}">首页</a></div>
                </div>
                <div class="navbody station">
                    <ul>
                        <li><a href="{{url('station_job')}}">找{{$station_name}}工作</a></li>
                        <li><a href="{{mainUrl('/personnel?jobarea1='.$station_cid)}}">找{{$station_name}}人才</a></li>
                        <li><a href="{{mainUrl('news')}}">职场资讯</a></li>
                    </ul>
                </div>
                <div class="enterprise"><a href="{{mainUrl('/company/welcome')}}" class="portal">企业入口</a></div>
            </div>
        </div>
    </div>

    <div id="moreSearch_option" class="moreSearch">
        <div><i></i></div>
        <ul>
            <li><a href="{{url('/station_job')}}">最新工作</a></li>
            <li><a href="{{mainUrl('/job?map_show=1')}}">附近工作</a></li>
            <li><a href="{{mainUrl('/personal/accurate_search')}}">全能搜索</a></li>
            <li><a href="{{mainUrl('/personal/recommended_post')}}">推荐的职位</a></li>
        </ul>
    </div>

    {{--主体内容--}}
    <div class="main stationCon">
        <div class="maincon">
            <div class="stationList">
                <div class="station_head">
                    <div class="sleft">
                        <span>为你找到了<strong>{{$jobList->total()}}+</strong>份职位</span>
                    </div>
                    <div class="sright">
                        <div class="page">
                            <a href="{{$jobList->previousPageUrl()}}" class="btn_gary previous"><</a>
                            <span><em>{{$jobList->currentPage()}}</em>/{{$jobList->lastPage()}}</span>
                            <a href="{{$jobList->nextPageUrl()}}" class="next">></a>
                        </div>
                    </div>
                </div>
                {{--列表--}}
                @if(count($jobList) > 0)
                    <div class="list">
                        @foreach($jobList as $k => $v)
                            <ul @if($k == 0) style="border-top:none;"@endif>
                                <li class="list1">
                                    <a href="{{mainUrl($v->joburl)}}">{{str_limit($v->job_title,24)}}</a>
                                    @if($v->urgent==1)<i></i>@endif
                                </li>
                                <li class="list2"><strong>{{$v->money}}</strong></li>
                                <li class="list3">
                                    @if(!empty($v->location))<span>{{$v->location}}</span>@endif
                                    @if(!empty($v->work_year))<em>/</em><span>{{$v->work_year}}</span>@endif
                                    @if(!empty($v->education))<em>/</em><span>{{$v->education}}</span>@endif
                                </li>
                                <li class="list4"><a href="{{mainUrl($v->comurl)}}">{{$v->company_name}}</a></li>
                                <li class="list5"><span>{{$v->updatetime}}</span></li>
                            </ul>
                        @endforeach
                    </div>
                @else
                    <div class="nolist">
                        <span><img src="{{mainUrl('default/images/index/bgpic.jpg')}}"></span>
                        <p>对不起,没有符合条件的记录!</p>
                    </div>
                @endif
            </div>
            {{--分页链接--}}
            <div class="page_list">
                {{$jobList->links()}}
            </div>
            <div class="stopper" style="margin-top:10px;"></div>
        </div>
    </div>
@endsection
{{--首页js--}}
@section('footerjs')
    @parent
    <script>
        var welcomeUrl = "{{ mainUrl('/personal/welcome') }}";
        var companyWelcomeUrl = "{{ mainUrl('/company/welcome') }}";
        var _token = "{{csrf_token()}}";
        var siteArea ={!!Site::getCity()->toJson()!!};
    </script>
    <script type="text/javascript" src="{{asset('/default/js/index/index.js')}}"></script>
    <script type="text/javascript" src="{{asset('/default/js/index/buffer.js')}}"></script>
    <script type="text/javascript" src="{{asset('/default/js/index/move_banner.js')}}"></script>
@endsection